
#ifndef REF_STUDY_H_
#define REF_STUDY_H_
#include <string>
using namespace std;
void swap(int &a, int &b);

int &retRef();

class Array
{
private:
    int *data;
    int length;

public:
    Array(int length);
    ~Array();
    int &operator[](int index);
};


class String
{
private:
    char *data;

public:
    String(char *);
    String(const String &other);
    String(String &&str);
};

String createStr();
#endif